/* Styles spécifiques pour la page d'accueil */

/* Section héros */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 500px;
    position: relative;
    z-index: 10;
    padding: var(--spacing-xl) 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    color: white;
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    font-family: var(--font-primary);
    animation: fadeInUp var(--transition-normal) var(--ease-out);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
    animation: fadeInUp var(--transition-normal) var(--ease-out) 200ms;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    animation: fadeInUp var(--transition-normal) var(--ease-out) 400ms;
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal) var(--ease-in-out);
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    animation: float 6s ease-in-out infinite;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles communs pour les sections */
section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-2xl);
    font-family: var(--font-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-action {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.empty-message {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--color-gray-100);
    border-radius: var(--border-radius-md);
    color: var(--color-gray-600);
}

/* Section domaines d'expertise */
.domains-section {
    background-color: white;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.domain-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-normal) var(--ease-out),
                box-shadow var(--transition-normal) var(--ease-out);
}

.domain-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.domain-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.domain-icon i {
    color: var(--color-primary);
    font-size: var(--font-size-2xl);
}

.domain-card h3 {
    color: var(--color-primary-dark);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-primary);
}

.domain-card p {
    color: var(--color-gray-700);
    line-height: 1.6;
}

/* Section actualités récentes */
.news-section {
    background-color: var(--color-gray-100);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.news-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal) var(--ease-out),
                box-shadow var(--transition-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal) var(--ease-out);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-light);
    color: white;
}

.placeholder-image i {
    font-size: var(--font-size-3xl);
}

.news-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

/* Suite du CSS pour la page d'accueil */

.news-date, .news-category {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
 }
 
 .news-category {
    background-color: rgba(var(--color-secondary-rgb), 0.1);
    color: var(--color-secondary-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
 }
 
 .news-title {
    color: var(--color-primary-dark);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    font-family: var(--font-primary);
 }
 
 .news-excerpt {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
 }
 
 .news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--color-gray-200);
 }
 
 .news-author {
    display: flex;
    align-items: center;
 }
 
 .news-author img, .news-author .default-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    margin-right: var(--spacing-sm);
 }
 
 .news-author .default-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: bold;
 }
 
 .news-author span {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
 }
 
 .btn-read {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal) var(--ease-in-out);
 }
 
 .btn-read:hover {
    color: var(--color-accent);
 }
 
 /* Section témoignages */
 .testimonials-section {
    background-color: white;
    position: relative;
 }
 
 .testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/pattern.svg');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 0;
 }
 
 .testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
 }
 
 .testimonial-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin: 0 var(--spacing-md);
 }
 
 .testimonial-content {
    position: relative;
    margin-bottom: var(--spacing-lg);
 }
 
 .quote-icon {
    font-size: var(--font-size-3xl);
    color: rgba(var(--color-primary-rgb), 0.1);
    position: absolute;
    top: -10px;
    left: -10px;
 }
 
 .testimonial-content p {
    font-size: var(--font-size-md);
    color: var(--color-gray-800);
    line-height: 1.6;
    font-style: italic;
    position: relative;
    z-index: 1;
 }
 
 .testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
 }
 
 .testimonial-author img, .testimonial-author .default-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-full);
    margin-right: var(--spacing-md);
 }
 
 .testimonial-author .default-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    font-size: var(--font-size-md);
    font-weight: bold;
 }
 
 .author-info {
    text-align: left;
 }
 
 .author-info h4 {
    color: var(--color-primary-dark);
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-primary);
 }
 
 .author-info p {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
 }
 
 /* Section équipe */
 .team-section {
    background-color: var(--color-gray-100);
 }
 
 .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
 }
 
 .team-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform var(--transition-normal) var(--ease-out),
                box-shadow var(--transition-normal) var(--ease-out);
 }
 
 .team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
 }
 
 .team-photo {
    height: 250px;
    overflow: hidden;
 }
 
 .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal) var(--ease-out);
 }
 
 .team-card:hover .team-photo img {
    transform: scale(1.05);
 }
 
 .team-photo .default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    font-size: var(--font-size-3xl);
    font-weight: bold;
 }
 
 .team-info {
    padding: var(--spacing-lg);
    text-align: center;
 }
 
 .team-info h3 {
    color: var(--color-primary-dark);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-primary);
 }
 
 .team-title {
    color: var(--color-primary);
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-xs);
 }
 
 .team-theme {
    display: inline-block;
    background-color: rgba(var(--color-secondary-rgb), 0.1);
    color: var(--color-secondary-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
 }
 
 .team-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
 }
 
 .social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-200);
    color: var(--color-primary);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-normal) var(--ease-in-out);
 }
 
 .social-link:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
 }
 
 .team-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
 }
 
 /* Section événements */
 .events-section {
    background-color: white;
 }
 
 .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
 }
 
 .event-card {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal) var(--ease-out),
                box-shadow var(--transition-normal) var(--ease-out);
 }
 
 .event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
 }
 
 .event-date {
    width: 80px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-sm);
 }
 
 .event-date .day {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: 1;
 }
 
 .event-date .month {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
 }
 
 .event-details {
    padding: var(--spacing-md);
    flex-grow: 1;
 }
 
 .event-details h3 {
    color: var(--color-primary-dark);
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-primary);
 }
 
 .event-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
 }
 
 .event-info i {
    margin-right: var(--spacing-xs);
 }
 
 .event-description {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    line-height: 1.5;
 }
 
 .event-type {
    display: inline-block;
    background-color: rgba(var(--color-accent-rgb), 0.1);
    color: var(--color-accent-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
 }
 
 /* Section statistiques */
 .stats-section {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-2xl) 0;
 }
 
 .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
 }
 
 .stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-primary);
    color: white;
 }
 
 .stat-label {
    font-size: var(--font-size-md);
    text-transform: uppercase;
    letter-spacing: 1px;
 }
 
 /* Section CTA contact */
 .contact-cta-section {
    background-color: var(--color-gray-100);
    padding: var(--spacing-2xl) 0;
 }
 
 .contact-cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
 }
 
 .contact-cta-content h2 {
    color: var(--color-primary);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-primary);
 }
 
 .contact-cta-content p {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-md);
    line-height: 1.6;
 }
 
 /* Responsive */
 @media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-container {
        justify-content: center;
    }
 }
 
 @media (max-width: 768px) {
    .news-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-xs);
    }
    
    .event-date .day, .event-date .month {
        font-size: var(--font-size-md);
    }
 }
 
 @media (max-width: 576px) {
    .domains-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
 }

 /* Styles pour la section directeurs avec images rondes */
.director-section {
   padding: 80px 0;
   background-color: #f8f9fa;
}

.director-section .section-title {
   font-size: 2.5rem;
   color: #0a2463;
   text-align: center;
   margin-bottom: 2rem;
   position: relative;
}

.director-section .section-title::after {
   content: '';
   position: absolute;
   bottom: -15px;
   left: 50%;
   transform: translateX(-50%);
   width: 80px;
   height: 4px;
   background: linear-gradient(90deg, #ff6b6b, #fc5185);
   border-radius: 2px;
}

.director-section .team-grid {
   display: flex;
   justify-content: center;
   gap: 40px;
   margin-top: 3rem;
}

/* Modification pour rendre les images rondes */
.director-section .team-photo {
   width: 200px;
   height: 200px;
   border-radius: 50%;
   margin: 0 auto 20px;
   overflow: hidden;
   border: 5px solid white;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.director-section .team-photo img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.director-section .default-avatar {
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   background: linear-gradient(135deg, #0a2463, #1e3a8a);
   color: white;
   font-size: 4rem;
   font-weight: bold;
   border-radius: 50%;
}

.director-section .team-card {
   background: white;
   border-radius: 15px;
   padding: 30px;
   text-align: center;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
   transition: all 0.3s ease;
}

.director-section .team-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.director-section .team-info h3 {
   font-size: 1.8rem;
   color: #0a2463;
   margin-bottom: 0.5rem;
}

.director-section .team-title {
   color: #4a5568;
   font-size: 1.2rem;
   margin-bottom: 0.5rem;
}

.director-section .team-theme {
   display: inline-block;
   background-color: rgba(10, 36, 99, 0.1);
   color: #0a2463;
   padding: 0.5rem 1rem;
   border-radius: 30px;
   font-size: 0.9rem;
   margin: 0.5rem 0 1rem;
}

.director-section .team-social {
   display: flex;
   justify-content: center;
   gap: 15px;
   margin-top: 1rem;
}

.director-section .social-link {
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   background-color: #f1f5f9;
   color: #0a2463;
   border-radius: 50%;
   transition: all 0.3s ease;
}

.director-section .social-link:hover {
   background-color: #0a2463;
   color: white;
}

/* Responsivité */
@media (max-width: 768px) {
   .director-section .team-grid {
       flex-direction: column;
       align-items: center;
   }
   
   .director-section .team-card {
       width: 100%;
       max-width: 340px;
   }
}


/* ===== SECTION PROJETS PAGE D'ACCUEIL ===== */

.projects-home-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, 
        var(--color-light) 0%, 
        rgba(var(--color-secondary-rgb), 0.05) 50%, 
        var(--color-light) 100%);
    position: relative;
    overflow: hidden;
}

.projects-home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(10,36,114,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.projects-home-section .container {
    position: relative;
    z-index: 1;
}

/* ===== HEADER SECTION ===== */
.projects-home-section .section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    animation: fadeInUp 0.8s var(--ease-out);
}

.projects-home-section .section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
}

.projects-home-section .title-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.projects-home-section .title-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

.projects-home-section .section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    font-family: var(--font-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== GRILLE PROJETS ===== */
.projects-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

.project-home-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal) var(--ease-out);
    position: relative;
    border: 1px solid var(--color-gray-200);
    animation: fadeInUp 0.8s var(--ease-out);
}

/* MODIFIÉ : Barre bleu foncé au-dessus de la carte */
.project-home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary); /* Bleu foncé uniquement */
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-home-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.project-home-card:hover::before {
    opacity: 1;
}

/* Animation décalée pour les cartes */
.project-home-card:nth-child(1) { animation-delay: 0.1s; }
.project-home-card:nth-child(2) { animation-delay: 0.2s; }
.project-home-card:nth-child(3) { animation-delay: 0.3s; }

/* ===== IMAGE PROJET ===== */
.project-home-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));
}

.project-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) var(--ease-out);
}

.project-home-card:hover .project-home-image img {
    transform: scale(1.1) rotate(1deg);
}

.project-home-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-4xl);
    position: relative;
    overflow: hidden;
}

.project-home-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M10 10h5v5h-5zM35 35h5v5h-5z" fill="white" opacity="0.1"/><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    opacity: 0.3;
}

.project-home-status {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: linear-gradient(135deg, 
        rgba(var(--color-secondary-rgb), 0.95), 
        rgba(var(--color-secondary-rgb), 0.8));
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== CONTENU PROJET ===== */
.project-home-content {
    padding: var(--spacing-2xl);
}

/* MODIFIÉ : Type avec bleu ciel */
.project-home-type {
    background: linear-gradient(135deg, 
        rgba(var(--color-secondary-rgb), 0.1), 
        rgba(var(--color-secondary-rgb), 0.15));
    color: var(--color-secondary); /* Bleu ciel */
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    font-family: var(--font-primary);
    display: inline-block;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(var(--color-secondary-rgb), 0.3);
}

.project-home-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 var(--spacing-md);
    line-height: 1.3;
    font-family: var(--font-primary);
    transition: color var(--transition-normal);
}

.project-home-card:hover .project-home-title {
    color: var(--color-primary);
}

.project-home-description {
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
}

/* ===== META INFORMATION ===== */
.project-home-meta {
    margin-bottom: var(--spacing-lg);
}

.project-home-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    font-family: var(--font-secondary);
}

.author-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.author-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 700;
    font-family: var(--font-primary);
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

/* ===== TECHNOLOGIES ===== */
.project-home-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.tech-tag-small {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
}

.tech-more-small {
    background: linear-gradient(135deg, var(--color-gray-500), var(--color-gray-600));
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    font-family: var(--font-primary);
    box-shadow: var(--shadow-sm);
}

/* ===== LIEN PROJET ===== */
/* MODIFIÉ : Lien rouge */
.project-home-link {
    color: var(--color-accent); /* Rouge */
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-normal) var(--ease-out);
    position: relative;
    padding: var(--spacing-sm) 0;
}

.project-home-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent); /* Rouge pour le soulignement */
    transition: width var(--transition-normal) var(--ease-out);
}

.project-home-link:hover::before {
    width: 100%;
}

.project-home-link:hover {
    color: var(--color-accent-dark); /* Rouge foncé au hover */
    text-decoration: none;
    transform: translateX(var(--spacing-xs));
}

.project-home-link i {
    transition: transform var(--transition-normal) var(--ease-out);
}

.project-home-link:hover i {
    transform: translateX(var(--spacing-xs));
}

/* ===== BOUTON VOIR TOUS ===== */
.projects-home-section .section-action {
    text-align: center;
    animation: fadeInUp 1s var(--ease-out) 0.6s both;
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-md);
    font-weight: 700;
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-normal) var(--ease-out);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-normal);
}

.btn-lg:hover::before {
    left: 100%;
}

.btn-lg:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-lg i {
    transition: transform var(--transition-normal);
}

.btn-lg:hover i {
    transform: scale(1.1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% { 
        transform: translateX(-100%) rotate(45deg); 
        opacity: 0;
    }
    50% { 
        transform: translateX(0%) rotate(45deg); 
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(0.98);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .projects-home-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .projects-home-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .projects-home-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .projects-home-section .section-title {
        font-size: var(--font-size-2xl);
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .projects-home-section .title-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }
    
    .projects-home-section .section-subtitle {
        font-size: var(--font-size-md);
    }
    
    .project-home-content {
        padding: var(--spacing-lg);
    }
    
    .project-home-image {
        height: 200px;
    }
    
    .project-home-title {
        font-size: var(--font-size-lg);
    }
    
    .btn-lg {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 480px) {
    .projects-home-section {
        padding: var(--spacing-xl) 0;
    }
    
    .projects-home-grid {
        gap: var(--spacing-md);
    }
    
    .project-home-content {
        padding: var(--spacing-md);
    }
    
    .project-home-image {
        height: 180px;
    }
    
    .projects-home-section .section-title {
        font-size: var(--font-size-xl);
    }
    
    .projects-home-section .title-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    .project-home-author {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}